package wiz.client.ui.viewimpl;

import wiz.client.activities.playhand.NumberValueSelector;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasEnabled;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

public class NumberValueSelectorImpl extends Composite implements NumberValueSelector {

	private static NumberValueSelectorUiBinder uiBinder = GWT.create(NumberValueSelectorUiBinder.class);

	interface NumberValueSelectorUiBinder extends UiBinder<Widget, NumberValueSelectorImpl> {
	}

	public NumberValueSelectorImpl() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	@UiField
	HasText fValue;
	
	@UiField
	Button fIncreaseButton;
//	
//	@UiField
//	Button	fDecreaseButton;
	
	
	public HasText getValueText() {
		return fValue;
	}
	
	public  HasClickHandlers getIncreaseButtonClickHanlders() {
		return fIncreaseButton;
	}
	
	@Override
	public HasEnabled getIncreaseButtonEnabled() {
		return fIncreaseButton;
	}
	
	public void setStyleName(String name){
		getWidget().setStyleName(name);
	}
	
//	public  HasClickHandlers getDecreaseButtonClickHandlers() {
//		return fDecreaseButton;
//	}
//	
//	@Override
//	public HasEnabled getDecreaseButtonEnabled() {
//		return fDecreaseButton;
//	}

	

}
